//
//  LoadingView.swift
//  skincare
//
//  Created by whu125 on 2023/5/24.
//

import SwiftUI

struct LoadingView: View {
    var body: some View {
//        ZStack {
//            Color.black.opacity(0.1)
//               // .ignoresSafeArea()
//            ProgressView()
//                .progressViewStyle(CircularProgressViewStyle())
//                .foregroundColor(.white)
//        }.edgesIgnoringSafeArea(.all)
        ZStack {
                   Color.black.opacity(0.4)
                       .edgesIgnoringSafeArea(.all)
                   
                   VStack {
                       ProgressView()
                           .progressViewStyle(CircularProgressViewStyle())
                           .foregroundColor(.white)
                       
                       Text("Loading...")
                           .foregroundColor(.white)
                   }
               }
    }
}


struct LoadingView_Previews: PreviewProvider {
    static var previews: some View {
        LoadingView()
    }
}
